import 'package:fish_redux/fish_redux.dart';
import '../model/account_model.dart';

class UserAccountViewState implements Cloneable<UserAccountViewState> {
  List<GasAccountModel> items;
  List nbCtrlCodes = [];
  List machineCtrlCodes = [];

  /// 0 户号管理   1 故障报修  2 安检记录  3 购气充值  4 扣费记录
  int type = 0;

  @override
  UserAccountViewState clone() {
    return UserAccountViewState()
      ..items = items
      ..nbCtrlCodes = nbCtrlCodes
      ..machineCtrlCodes = machineCtrlCodes
      ..type = type;
  }
}

UserAccountViewState initState(Map<String, dynamic> args) {
  return UserAccountViewState()..type = args == null ? 0 : args['type'] ?? 0;
}
